package com.tengfei.main.index.domain.bo;

import com.tengfei.common.core.validate.AddGroup;
import com.tengfei.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * 通知公告业务对象 ix_notice
 *
 * @author tengfei
 * @date 2022-09-03
 */

@Data
@ApiModel("通知公告业务对象")
public class NoticeBo {

    /**
     * noId
     */
    @ApiModelProperty(value = "noId")
    @NotNull(message = "noId不能为空", groups = {EditGroup.class})
    private Long noId;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题", required = true)
    @NotBlank(message = "标题不能为空", groups = {AddGroup.class, EditGroup.class})
    private String noTitle;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容", required = true)
    @NotBlank(message = "内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String noContent;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型", required = true)
    @NotNull(message = "类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer noType;

    /**
     * 是否置顶
     */
    @ApiModelProperty(value = "是否置顶", required = true)
    @NotNull(message = "是否置顶不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer noIsTop;


}
